package com.zoe.app.entity;

import lombok.Data;

import java.util.List;

/**
 * @author zoe.Zhang
 * @date 2022/05/13
 * @description
 */
@Data
public class User {
    private Integer id;
    private String name;
    private List<String> cars;
    private Animal animal;

    @Data
    public static class Animal {
        private String animalName;

        public String getAnimalName() {
            return animalName;
        }

        public void setAnimalName(String animalName) {
            this.animalName = animalName;
        }
    }
}
